<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Partners extends ORM {
	protected $_table_name = 'partners';

	public function get_all() {
		$postfix = Controller_Common::$postfix;

		return DB::select('id', array('title'.$postfix, 'title'), 'link', 'image', 'image_params', 'sort')
			->from($this->_table_name)
			->order_by('sort', 'DESC')
			->as_object()
			->execute();
	}

}